import { Module } from '@nestjs/common';
import { MongooseModule } from '@nestjs/mongoose';
import { QuestionGroupController } from './question-group.controller';
import { QuestionGroupService } from './question-group.service';
import { QuestionGroup, QuestionGroupSchema } from '../schemas/question-group/question-group.schema';
import { Question, QuestionSchema } from '../schemas/questions/question.schema';

@Module({
  imports: [
    MongooseModule.forFeature([
      { name: QuestionGroup.name, schema: QuestionGroupSchema },
      { name: Question.name, schema: QuestionSchema },
    ]),
  ],
  controllers: [QuestionGroupController],
  providers: [QuestionGroupService],
  exports: [QuestionGroupService],
})
export class QuestionGroupModule {}